﻿using System;
using System.Collections.Generic;
using RecipeModule;

namespace OrderModule
{
    public class Order
    {
        public int id;
        public DateTime dateTime;
        public List<RecipeDish> listDish;
        public RecipeType recipeType;
        
        public Order(int id)
        {
            this.id = id;
            dateTime = DateTime.Now;
            listDish = new List<RecipeDish>();
            recipeType = RecipeType.Morning;
        }

        public void AddFromRecipe(Recipe recipe)
        {
            recipeType = recipe.recipeType;
            for (var i = 0; i < recipe.listDish.Count; i++)
            {
                listDish.Add(recipe.listDish[i]);
            }
        }
    }
}